package com.ruoyi.project.system.member.service;

import com.github.pagehelper.PageInfo;
import com.ruoyi.project.jiaqin.viprecord.domain.JiaqinBuyvipRecord;
import com.ruoyi.project.system.member.domain.Member;

import java.util.List;

/**
 * 小程序用户Service接口
 *
 * @author f_baisi
 * @date 2020-06-09
 */
public interface IMemberService
{
    /**
     * 查询小程序用户
     *
     * @param id 小程序用户ID
     * @return 小程序用户
     */
    public Member selectMemberById(String id);

    /**
     * 查询小程序用户列表
     *
     * @param member 小程序用户
     * @return 小程序用户集合
     */
    public List<Member> selectMemberList(Member member);

    /**
     * 新增小程序用户
     *
     * @param member 小程序用户
     * @return 结果
     */
    public int insertMember(Member member);

    /**
     * 修改小程序用户
     *
     * @param member 小程序用户
     * @return 结果
     */
    public int updateMember(Member member);

    /**
     * 批量删除小程序用户
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteMemberByIds(String ids);

    /**
     * 删除小程序用户信息
     *
     * @param id 小程序用户ID
     * @return 结果
     */
    public int deleteMemberById(String id);

	Member findOneByOpenId(String openid);

	String[] findListPerson(String id);

    Integer findOrderSumByIds(String[] personIds);

    Double findOrderPriceSumByIds(String[] personIds);

    Integer findSumVipByIds(String[] personIds);

	List<Member> findMemberListPerson(String userId);

	public int payResult(JiaqinBuyvipRecord jiaqinBuyvipRecord,Member member,String transactionId);

    public List<Member> searchMemberList(String memberName, Integer province, Integer city, Integer area, String industry, String memberId);

    public PageInfo<Member> searchMemberListPage(Integer pageNum, Integer pageSize, String memberId, Member member);

    public Member selectMemberByOrderOn(String OrderOn);

    public List<Member> selectAllMember();

}
